package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserEnergysMapper;
import com.ruoyi.system.domain.UserEnergys;
import com.ruoyi.system.service.IUserEnergysService;

/**
 * 用户体力信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-17
 */
@Service
public class UserEnergysServiceImpl implements IUserEnergysService 
{
    @Autowired
    private UserEnergysMapper userEnergysMapper;

    /**
     * 查询用户体力信息
     * 
     * @param userEnergysId 用户体力信息主键
     * @return 用户体力信息
     */
    @Override
    public UserEnergys selectUserEnergysByUserEnergysId(Long userEnergysId)
    {
        return userEnergysMapper.selectUserEnergysByUserEnergysId(userEnergysId);
    }

    /**
     * 查询用户体力信息列表
     * 
     * @param userEnergys 用户体力信息
     * @return 用户体力信息
     */
    @Override
    public List<UserEnergys> selectUserEnergysList(UserEnergys userEnergys)
    {
        return userEnergysMapper.selectUserEnergysList(userEnergys);
    }

    /**
     * 新增用户体力信息
     * 
     * @param userEnergys 用户体力信息
     * @return 结果
     */
    @Override
    public int insertUserEnergys(UserEnergys userEnergys)
    {
        return userEnergysMapper.insertUserEnergys(userEnergys);
    }

    /**
     * 修改用户体力信息
     * 
     * @param userEnergys 用户体力信息
     * @return 结果
     */
    @Override
    public int updateUserEnergys(UserEnergys userEnergys)
    {
        return userEnergysMapper.updateUserEnergys(userEnergys);
    }

    /**
     * 批量删除用户体力信息
     * 
     * @param userEnergysIds 需要删除的用户体力信息主键
     * @return 结果
     */
    @Override
    public int deleteUserEnergysByUserEnergysIds(Long[] userEnergysIds)
    {
        return userEnergysMapper.deleteUserEnergysByUserEnergysIds(userEnergysIds);
    }

    /**
     * 删除用户体力信息信息
     * 
     * @param userEnergysId 用户体力信息主键
     * @return 结果
     */
    @Override
    public int deleteUserEnergysByUserEnergysId(Long userEnergysId)
    {
        return userEnergysMapper.deleteUserEnergysByUserEnergysId(userEnergysId);
    }
}
